import axiosHelper from "./axiosHelper";
// 读操作的URL前缀
const READUSER_BASE_URL = "api/v7/Approval/";
// 写操作的URL前缀
const WRITEUSER_BASE_URL = "api/v4/Meet/";

/**
 * 会议室审批信息
 * @param data 审批信息
 */
export const GetMeetApproval = async (data: any) => {
  return axiosHelper.read({
    url: `${READUSER_BASE_URL}GetMeetApproval`, // 替换为实际的URL
    method: "put", // 替换为实际的HTTP方法
    data: data,
  });
};
/**
 * 提交审批信息
 * @param data 审批信息
 */
export const MeetApproval = async (data: any) => {
  return axiosHelper.write({
    url: `${WRITEUSER_BASE_URL}ApprovalMeet`, // 替换为实际的URL
    method: "post", // 替换为实际的HTTP方法
    data: data,
  });
};
